//package com.yami.shop.admin.controller;
//
//import com.yami.shop.bean.model.LuckUserProduct;
//import com.yami.shop.service.LuckUserProductService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.http.ResponseEntity;
//import org.springframework.jdbc.core.JdbcTemplate;
//import org.springframework.stereotype.Controller;
//import org.springframework.web.bind.annotation.RequestMapping;
//
//import java.util.List;
//import java.util.Map;
//
//@Controller
//@RequestMapping("/lup")
//public class LuckUserProductController{
//
//    @Autowired
//    private LuckUserProductService luckUserProductService;
//
//
//    @RequestMapping("/lkp")
//    public ResponseEntity<LuckUserProduct> getLuckPersonByUid(String uid){
//        LuckUserProduct luckUserProduct = new LuckUserProduct();
//        luckUserProduct.setUid(uid);
//       return ResponseEntity.ok(luckUserProductService.queryList(luckUserProduct));
//    }
//
//    @RequestMapping("/lkall")
//    public ResponseEntity<Map<String,Object>> getAllLuckPerson(){
//        List<Map<String, Object>> allLuckPerson = luckUserProductService.getAllLuckPerson();
//        return ResponseEntity.ok(allLuckPerson);
//
//    }
//
//}
